package com.coincalf.wallet.blockchain.bean.trx;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TrxTransaction {

    //如果交易处于待确认状态 则没有该字段
    @JsonProperty("ret")
    private List<Ret> ret;

    @JsonProperty("signature")
    private List<String> signature;

    @JsonProperty("txID")
    private String txId;

    @JsonProperty("raw_data")
    private TrxRawData rwaDate;

    @JsonProperty("raw_data_hex")
    private String rawDataHex;

    @JsonProperty("visible")
    private Boolean visible;

    /**
     * {
     * "contractRet": "SUCCESS"
     * }
     */
    @Data
    public static class Ret {
        @JsonProperty("contractRet")
        private String contractRet;
    }

}
